#ifndef __CR_ASM_RESTORER_H__
#define __CR_ASM_RESTORER_H__

#include "asm/types.h"
#include <compel/asm/fpu.h>
#include "images/core.pb-c.h"
#include <compel/plugins/std/syscall-codes.h>
#include <compel/asm/sigframe.h>

/* clang-format off */
#define RUN_CLONE_RESTORE_FN(ret, clone_flags, new_sp, parent_tid,	\
			thread_args, clone_restore_fn)			\
		asm volatile("nop")

#define RUN_CLONE3_RESTORE_FN(ret, clone_args, size, args,	\
			clone_restore_fn)								\
		asm volatile("nop")

/* clang-format on */

static inline void restore_tls(tls_t *ptls)
{
	asm volatile("nop");
}
static inline int arch_compat_rt_sigaction(void *stack, int sig, void *act)
{
	return -1;
}
static inline int set_compat_robust_list(uint32_t head_ptr, uint32_t len)
{
	return -1;
}
static inline void *alloc_compat_syscall_stack(void)
{
	return NULL;
}
static inline void free_compat_syscall_stack(void *stack32)
{
}
int restore_gpregs(struct rt_sigframe *f, UserSw64GpregsEntry *r);
int restore_nonsigframe_gpregs(UserSw64GpregsEntry *r);

#define arch_map_vdso(map, compat) -1

#endif
